package io.aircraft.modules.wms.service;

import io.aircraft.modules.wms.dto.StockDTO;
import io.aircraft.modules.wms.dto.StockDetailDTO;
import io.aircraft.modules.wms.entity.StockEntity;
import io.aircraft.common.service.CrudService;
import io.aircraft.modules.wms.entity.StockUsableEntity;

import java.util.List;
import java.util.Map;

/**
 * @author Cycle gengruyi01@163.com
 * @since 1.0.0 2022-10-13
 */
public interface StockService extends CrudService<StockEntity, StockDTO> {
    void unfreezeStockByTime();
    StockDetailDTO getStockDetailsBySpu(Map<String,Object> params);
    StockDetailDTO getStockDetails();
    List<StockDetailDTO> getStockDetailsGroupBySpu();
    String getUsableStockByDvc(StockUsableEntity params);
    List<StockEntity> getUsableStockListByDvc(StockUsableEntity params);
}